package com.simple.gulimall.product.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.simple.common.utils.PageUtils;
import com.simple.gulimall.product.entity.AttrEntity;
import com.simple.gulimall.product.entity.ProductAttrValueEntity;
import com.simple.gulimall.product.vo.AttrRespVo;
import com.simple.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author simpleZzz
 * @email 2466714892@qq.com
 * @date 2020-07-04 00:25:58
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String attrType);

    AttrRespVo getAttrInfo(Long attrId);

    void updateAttr(AttrVo attr);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);

    List<AttrEntity> selectSearchAttrs(List<Long> attrIds);
}

